package com.bjpowernode.javaWeb.servlet;

import jakarta.servlet.*;

import java.io.IOException;
import java.io.PrintWriter;


public class ConfigTextServlet2 extends GenericServlet {
    @Override
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out=response.getWriter();


        //获取ServletConfig对象
        ServletConfig config=getServletConfig();

        //输出该对象
        //ServletConfig对象是：org.apache.catalina.core.StandardWrapperFacade@4f580bcd
        out.print("ServletConfig对象是："+config);
    }
}
